package dashu;

import java.math.BigInteger;
import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		BigInteger da=new BigInteger("0");
		BigInteger sum=new BigInteger("0");
		String str=null;
		while(!((str=in.next()).indexOf("e")!=-1)&&!((str=in.next()).indexOf("E")!=-1))
		{
		  BigInteger num=new BigInteger(str);
	      sum=sum.add(num);
	    }
		System.out.println(sum);
	}
}
		